package com.model.dto.sys.sysOperLog;

import com.model.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;

/**
 * @Author: zql
 * @Description: 查询操作列表
 * @Data: 11:19 2021/8/11
 */
@Data
public class GetSysOperLogListDTO  extends BaseEntity{
    @ApiModelProperty(value = "模块标题",required = true)
    @Size(min = 0, max = 50, message = "title长度限制为50")
    private String title;

    @ApiModelProperty(value = "0:其他,1:新增,2:修改信息,3:修改数据状态,4:授权,5:导出,6:导入,7:强退,8:生成代码,9:清空状态,10:查询数据",allowableValues = "0,1,2,3,4,5,6,7,8,9,10",required = true)
    @Min(value = 0, message = "0:其他,1:新增,2:修改信息,3:修改数据状态,4:授权,5:导出,6:导入,7:强退,8:生成代码,9:清空状态,10:查询数据")
    @Max(value = 10, message = "0:其他,1:新增,2:修改信息,3:修改数据状态,4:授权,5:导出,6:导入,7:强退,8:生成代码,9:清空状态,10:查询数据")
    private Byte businessType;

    @ApiModelProperty(value = "0:正常,1:异常",allowableValues = "0,1",required = true)
    @Min(value = 0, message = "0:正常,1:异常")
    @Max(value = 1, message = "0:正常,1:异常")
    private Byte status;
}
